/**
 * 
 */
package com.kylinhunter.ch.knowledgebase;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.beans.PropertyVetoException;

import javax.swing.JDesktopPane;
import javax.swing.JFrame;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;

import com.kylinhunter.ch.plugin.knowledgebase.ui.KownledgeBasePluginMainFrame;
import com.kylinhunter.ch.system.CHSystem;
 
import com.test.common.JFrameWithDesktop;
import com.test.common.TestTools;

/**
 * @author KylinHunter
 *
 */
public class KBMainTest {
	JFrameWithDesktop jFrameWithDesktop=TestTools.getAframeWithDesktop(); 
	int i=0;
	/**
	 * @throws java.lang.Exception
	 */
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		CHSystem chSystem=new CHSystem();
		chSystem.init();		
	}

	/**
	 * @throws java.lang.Exception
	 */
	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@After
	public void tearDown() throws Exception {
	}

	/**
	 * Test method for {@link com.kylinhunter.ch.ui.knowledgebase.KBMain#KBMain()}.
	 */
	//@Ignore("@Ignore")
	@Test
	public final void testKBMain() {
		jFrameWithDesktop.addDeskTopPanelInternalFrame(new KownledgeBasePluginMainFrame("addFile"+(i++)+"","addFile"+(i++)+""));
		jFrameWithDesktop.setVisible(true);
		TestTools.sleep();
		
	}
	 
 
}
